package com.xbongbong.admin.model.impl;


import com.xbongbong.admin.domain.dao.MirrorLowCodeDao;
import com.xbongbong.admin.domain.entity.MirrorLowCodeEntity;
import com.xbongbong.admin.model.MirrorLowCodeModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author 李少杰
 */
@Service("mirrorLowCodeModel")
public class MirrorLowCodeModelImpl implements MirrorLowCodeModel {
    @Resource
    private MirrorLowCodeDao mirrorLowCodeDao;


    @Override
    public Long insert(MirrorLowCodeEntity entity) {
        return mirrorLowCodeDao.insert(entity);
    }

    @Override
    public void insertBatch(List<MirrorLowCodeEntity> list) {
        mirrorLowCodeDao.insertBatch(list);
    }

    @Override
    public List<MirrorLowCodeEntity> findEntities(Map<String, Object> param) {
        return mirrorLowCodeDao.findEntities(param);
    }

    @Override
    public Integer getEntityCount(Map<String, Object> param) {
        return mirrorLowCodeDao.getEntitiesCount(param);
    }

    @Override
    public void update(MirrorLowCodeEntity entity) {
        mirrorLowCodeDao.update(entity);
    }

    @Override
    public MirrorLowCodeEntity getByKey(Long key) {
        return mirrorLowCodeDao.getByKey(key);
    }

}
